better error handling when patch is not installed