fix for new resourceByPath relative load of resources

A few days ago there was a change to resourceByPath, now it accepts relative and absolute loads. This change only worked for me in JVM but i do believe it should work same way in both plataforms. Im not sure if JS plataform has resourceByPath implemented.

Just to sync this adding @quintesse and @gavinking