File sync script for OS X