Fix git cloning in case different directory name specified