configdir is not necessarly always working directory