Submodule init made slightly better

Additionally, deploy.sh now works under posix-compliant shells such as dash