I don't know the ROM tags on the S4, but for 4.3, you want SafeStrap 3.72. For 4.4.2 you want 3.75. For 4.4.4 you need to install 4.4.2, root, install busybox, install SafeStrap, install 4.4.4. Then if you want to get back to SafeStrap you have to flash a 4.4.2 kernel and boot. (And flash a 4.4.4 kernel to boot back to 4.4.4.) See
Samsung Galaxy S 4 i9500, i9505, i9505G, i9506 - XDA Forums for threads with details.
Or, if the phone isn't AT&T or Verizon, just install TWRP as your recovery and don't worry about which version of Android you're using.