Fixes for inasafe deployment (thanks Assefa)
Improvements to deployment script.