fix z path scope

Using set with just -x would only set the variable locally (and child processes) and this wasn't working for me. I'm guessing the .load files are loaded in a separate scope/process.