Use resources loader to handle non-filesystem situations (#120)

* Use a resources loader if possible

* Remove logic duplication
1 file changed