Extend --nth option to take ranges

As discussed in #55