added quoting of the base directory