Remove garbage from tmp, fix permissions on install.sh