Fixed IndexError and used globe module

Now can open files like `students/*.cpp