[MRELEASE-159] Support a pattern to generate the release tag. fixed unit tests and cleaned up default values.