Fix the version in the spec file

Version numbers cannot contain dashes, so if the generated version ends in
-hash, put the hash in the release number.
Allow buffers to start out smaller than 4KiB
Add -Q option to -i mode to allow word splitting and environment variable expansion