Expand path for pidfile creation
Use logfile flag for sending all output to a file in daemon contexts