core: fix broken filename in js resources
core: fix resolving path in config ending with `/`