Rupee gains ground against dollar