set working directory to the working directory of the target process
fix whitespaces