Properly set daemon pidfile name when starting daemon