Fix errors because lock file is not owned by web user

I really wish I knew why this was the case but it seems necesarry.