fix source file path generation