script doesn't work if dir has spaces in it