bin/sh.py: update time check