How NRIs can avoid tax troubles