Simplify post install hook and add proxy support

With the latest release of jar-dependencies the gem post install hook code was simplified and put into a single file
Also added proxy support to the installation part