Added check for read-only file systems to sync script.