nagios-api fails to run if /var/run is not writable which is standard

for distros following FHS, even the help message is not printed. Instead
write the pid to the current program dir unless an option is passed.