Migrated the pre-install script into a grunt task.