Check permissions of PID file