Replaced $PACKAGE_VERSION and $PACKAGE_VERSION variable with $BUILD and $VERSION Miscellaneous fixes to section build files