fixed workingdirectory problems