Switched keygen to install to temp directory.