Change haxelib path from environment variable

Cherry-picked from https://github.com/HaxeFoundation/haxelib/commit/8c5fb02d784ad257ac4684ffc443c719a96f3020