Added nbregpages to the allowed options for profiles
Add better error message when patch is not installed