terse path bug fixed
easier to understand code
easier to understand code
same code style as in synctool_scp.py
just recoding