use readlink instead of realpath
try and guess the config file path