Fix export file name

refactor https://github.com/jsonresume/resume-cli/pull/68/ to be more DRY