changed file permissions on install script and fixed rm commands