[cmake] add support for local/ environment (used by buildbot/felix)