Add deployemnt script

Source: https://github.com/X1011/git-directory-deploy
Fix tests