Fix resource normalization in when loading plugins

Fixes #384