remove slashes from dir name