updated file path expansion of configuration
added daemonification support