Update postinst

Fixed some wierd implementations of date and sed
Merge pull request #14 from CurlyMoo/patch-1

Update postinst