fix a bug in the construction of the bsvdefines string (foldl order of args)