fix build script for redhat destribution