Bug fixes, setup local repo on ambari server correctly