* Improved sync script to support relative paths