Removed unused variable and useless if-else

Removed from create_pid_file().

Both 'if' and 'else' contained the exact same code.