Fix seting of working directory