Remove double slashes from directories