Change invalid source verification to prevent distutils stderr output

This is a potential fix to #408. If people don't like this approach it can be closed.