fix weird upload errors on ubuntu precise