extract: be compatible with directory name containing spaces