fixed environment variables issues in install script
cleaned up install directory