Changed lock file check to only run when file is present (normal usage).