added: properly daemonize by detaching from the parent process and setting the working directory to /
added: use canonicalize_file_name to convert a relative path into an absolute one, for setting the html root directory before daemonizing, since that changes the working directory of the process