tmgr library fix (now need testing)

Commit https://github.com/nekromant/antares/commit/0e4d8aade76c33ae84f7b8fd629f9561c22c2af6