Fix the regex for detecting in-source builds.

#713