clean up the define paths