Enhancements to sh template
Enhancements to sh template

This PR includes two significant changes:

* If this version of the code is already in current:
  * If not forced, do not install the code
  * If forced, rename the old directory and write out a new one

* Ignore functions in environment when saving .install-metadata, due to an issue with FPM 1.25.29-31 and Bash 4.3.27

paul-krohn/fpm,cturra/fpm,tjyang/fpm,linearregression/fpm,josephfrazier/fpm,sideci-sample/sideci-sample-fpm,dischord01/fpm,linearregression/fpm,wyaeld/fpm,rbramwell/fpm,hlawrenz/fpm,virtkick/fpm,schatt/fpm,pskrz/fpm,doghrim/fpm,gearmover/fpm,schatt/fpm,joseph-onsip/fpm,mildred/fpm,josephfrazier/fpm,mildred/fpm,dischord01/fpm,elvido/fpm,josephfrazier/fpm,joseph-onsip/fpm,pskrz/fpm,mildred/fpm,tjyang/fpm,doghrim/fpm,josephfrazier/fpm,mzaccari/fpm,fetep/fpm,jerizm/fpm,dischord01/fpm,vi4m/fpm,wyaeld/fpm,gearmover/fpm,mzaccari/fpm,cturra/fpm,hlawrenz/fpm,jerizm/fpm,sideci-sample/sideci-sample-fpm,rbramwell/fpm,jerizm/fpm,doghrim/fpm,snailwalker/fpm,snailwalker/fpm,virtkick/fpm,godp1301/fpm,rbramwell/fpm,mzaccari/fpm,virtkick/fpm,fetep/fpm,fetep/fpm,virtkick/fpm,paul-krohn/fpm,godp1301/fpm,joseph-onsip/fpm,jerizm/fpm,hlawrenz/fpm,rbramwell/fpm,vi4m/fpm,doghrim/fpm,godp1301/fpm,paul-krohn/fpm,cturra/fpm,mildred/fpm,fetep/fpm,paul-krohn/fpm,joseph-onsip/fpm,pskrz/fpm,elvido/fpm,wyaeld/fpm,elvido/fpm,vi4m/fpm,gearmover/fpm,cturra/fpm,tjyang/fpm,hlawrenz/fpm,sideci-sample/sideci-sample-fpm,elvido/fpm,Tapjoy/fpm,tjyang/fpm,linearregression/fpm,godp1301/fpm,Tapjoy/fpm,wyaeld/fpm,pskrz/fpm,Tapjoy/fpm,linearregression/fpm,snailwalker/fpm,vi4m/fpm,dischord01/fpm,schatt/fpm,schatt/fpm,snailwalker/fpm,mzaccari/fpm,gearmover/fpm,Tapjoy/fpm