Refactor deploy-lock a bit
Merge pull request #21 from liftopia/deploy-lock-refactor

Refactor deploy-lock a bit