Add proxy environment to maestro agent

Use versioncmp to compare versions