Escape the base directory in glob().