utils: fix check_pid_path to work with deleted file as well