Ensure sys.path has the current working directory (the one the target py is located in) when executing to allow importing of modules. Also fixed an issue introduced with the last commit and moved initMapping calls back