taskreminder.sh: fix logic