pkg: Fix setting of %dist when building RPMs

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Merge pull request #419 from euanh/master

pkg: Fix setting of %dist when building RPMs