Expanded unit test to test paths that are created for RRDs. Fixed problem
in path where resource type wasn't filled in. Added some defensive code for
null nodeIds. Sanitized resource names for directory names.