ResourceManager.isPathValid(String) wasn't closing its InputStreams.

Also refactored a few things that happened to stand out (Using
System.err/out, no logger, etc).

[0]