Unset the `CDPATH` env variable before shelling-out. #1694

I guess bash is only used in `run_prepare_command`, but I'm not sure if the `CDPATH` should be unset globally at some other point so it can't create problems in the future.
Also, should this have a test?