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

Seems like this matches the composer usage.