Added fix that copying to localhost doesn't employ ssh/scp.
Bugfix: get_gridcoords() returned wrong new gridcoords.