[#2212] CID25881:

rmUnlinkedFilesInUnixDir cannot fail, so checking its status is
unnecessary. Also did a minor refactor to restrict scoping of variables
[#2212] CID25880:

checked return value for error
[#2212] CID25857:

Properly handle error code returned from myRead