daemon: Fix accepting -k option and remove -d