Fix crash on loading web interface (fixes #2)

- Fix error upon going to web interface ( #2 )
- Fix error upon going to login page about avatars folder not being found