Add cache and gm to pre-installation test. Don't die when we can't write to templates/cache.