Fix hash syntax for older ruby versions.