Fix double // when root folder is '/'.