Convert ValidTTL to sh

Removes one grep call, and is faster this way.