backup dir and undo dir

Signed-off-by: Ah-Lun Tang <tang@ahlun.be>