checkcerts.sh: cross platform support on *NIX

- function to convert dates to Julian to perform date calculation if GNU date is
  not present.