Bug fix: the basepath can now be empty.