Update cleanup script linux compatibility