Allow regex for basepath.