Fixes Issue 6743 - Print error if -run is followed by a path with an
extension not matching a source file extension.