Log Message: Changed explicit sed(1) code to the SUBST framework. Added BINOWN and BINGRP to the MAKE_ENV to make unpriviledged builds work.