Improving deploy and fixing bug with git dir.