fixed working with directories with spaces