Fix local variable usage in gemspecs