Fix directory+file concat when resource is not local, also change some variable names for clarity.
Fix directory+file concat when resource is not local, also change some variable names for clarity.

tzz/design-center,tzz/design-center,bdurrow/design-center,tzz/design-center,bdurrow/design-center,tzz/design-center,bdurrow/design-center,bdurrow/design-center