Merge pull request #215 from dnephin/mkdir-in-update

golden: only create dir if update flag is set