update sync script to work on linux