adding lock.pid logic to build.rb