Improve check for in-source build.
Merge remote-tracking branch 'origin/next' into MAID-203
Fixed to handle source paths containing regex special chars.
Merge remote-tracking branch 'origin/next' into MAID-203

Conflicts:
	CMakeLists.txt
Merge pull request #146 from Fraser999/MAID-203

MAID-203: Improve check for in-source build.
Merge remote-tracking branch 'upstream/next' into clang_format