workarounding problem where an unncessary long path is generated for definition files.