fix source file path generation

The modifications did not reflect my intentional patch