fix for dirs with spaces