Improved mgmt script (now detects installed version number automatically)