MAID-203: Improve check for in-source build.