quote directory names in case they contain spaces