Fix build script

get script dir and cpack cmd were not working as expected
Update to 7.4.7.0

standard update