Moving tests from tools/mng/ to tests/mng/
Fixing use of O_DIRECT for filesystems which don't support it: retry open without O_DIRECT.