Fixed python jobs not getting env vars and changed directory linking
code to fall back to copying eg on windows platforms