quote base directory name

fix bug when base directory has spaces