use proper path for webui git clone check and remove unused code