Added test error checking on calls to sed.
Switched from using sed to perl for version swap in composer file. GNU sed is different than Unix sed and will not work cross platform.