Fixed source file detection.