Don't try to open directories as files from sidebar