tests: define CONFIG_DIR in utils.
Merge pull request #813 from schaal/tests-configdir-env-variable

tests: Add function to utils to calculate CONFIG_DIR