Make basedir configurable