Avoid double slash in file names