Bugfix: load resource even if path doesn't contain folders (just a filename)