improve error message to include search path