s4sync: unify main_loop behaviour daemon/standalone script
s4sync: minor bugs/typos