fixed loading of file

first check for file.md else for file/index.md