Added helper prototype removeDirEntry to assist in rd_unlink.