minor refactor for checking where to place configuration files