Update postinst

Sed oneliners and wierd date implementation