Add dirty mode for sync command

This will help debugging and allow user scripts to check properties
after sync.