fixed some issues with deploy.rb
Merge branch 'release/v1.2.3g'

* release/v1.2.3g:
  fixed some issues with deploy.rb