export: Fix pre/rc behavior for spec files

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>