Fixes Issue 6743 - Print error if -run is followed by a path with an
extension not matching a source file extension.
Merge pull request #1460 from AndrejMitrovic/Fix6743

Issue 6743 - Print error if -run is followed by a path with an incompatible extension