Support empty basedir