a portable directory synchronization script