Update postinst

Fixed some wierd implementations of date and sed