Pnictogen height as a possible switch between high- T c nodeless and low- T c nodal pairings in the iron-based superconductors