Made install functions use file finding methods and improved error handling