Added exception on bad definition file