fix to hg export script