Add basedir param to connector