Replaced non existing variable $now with mktime().
Fixes #167