fix spec hash syntax to allow 1.8.7 compatibility