fix broken link to icons

This pull request should fixed broken link to icons in errors.html and in the map.
It also fix the creation of a directory if it is missing