Fix the regex for detecting in-source builds.

#713
Are you confident that these don't have trailing slashes? That would cause false negatives...