support base dir and properly reset deps_dir after plugin provider