add dirty update script
detached detection and output
rename dir-update; allow dirty update with -f