Fix untested bugs

Data file path and enum generation failed after last commit