Properly handle mainSourceFile for --rdmd. Fixes #263.