Fix bugs that occured during plugins install. Check if plugin has git file. info getPluginsJson obj now returning obj if plugin not installed yet.  Transform scaffolding git method into promise.