gpiodaemon: proper logging and daemonization