fix path generation for mono