Fixed crate_pid_file scope