update newbox script to work on rpm systems