Checking pid_file for None