Better error handling for malformed scheme files