sync remote2local: handle ENOTDIR bug #174