Correctly create $working_dir if needed