small cleanup buildlocal.sh fix for rhel5