build: mozilla: switch if/else around

(integrated from trunk branch change bc30c92 by Todd Whiteman <toddw@activestate.com>)