Make install script more resistant against weird installation directories