get config based on path relative to script directory