SHDP-201 Fix FileNotFoundException in resource loader

Moved getFileStatus(Path) after explicit exists(Path) call to
prevent exception to thrown. Modified tests to do checks
for paths which should exist and paths which should
not be present.