Realistically, if you haven't lived in and owned the house for two years yet, how much could you have for a gain anyway??? Also, now, looking at the fact pattern a little closer, I'm not convinced theres a partial exclusion. Look to Reg. 1.121-3 and I think the fact that you stayed in the house might work against you.
In addition, a change in employment needs certain requirements to qualify under safe harbor provisions.
(c) Sale or exchange by reason of a change in place of employment
(1) In general. A sale or exchange is by reason of a change in place of employment if, in the case of a qualified individual described in paragraph (f) of this section, the primary reason for the sale or exchange is a change in the location of the individual's employment.
(2) Distance safe harbor. A sale or exchange is deemed to be by reason of a change in place of employment (within the meaning of paragraph (c)(1) of this section) if—
(i) The change in place of employment occurs during the period of the taxpayer's ownership and use of the property as the taxpayer's principal residence; and
(ii) The qualified individual's new place of employment is at least 50 miles farther from the residence sold or exchanged than was the former place of employment, or, if there was no former place of employment, the distance between the qualified individual's new place of employment and the residence sold or exchanged is at least 50 miles.
(3) Employment. For purposes of this paragraph (c), employment includes the commencement of employment with a new employer, the continuation of employment with the same employer, and the commencement or continuation of self-employment.
I see two problems here. One, is the new job (new being relative) 50 miles further away than the old job? If yes, then you're ok. If not, then you need to qualify based on facts and circumstances. That goes back to the question, is the sale of the home based on a change in employment? The examples in the regulations show a couple instances where someone doesn't meet the safe harbor for distance. The examples also show a proximate relationship between change in employment and sale (which not coincidentally is the first in a lot of factors considered).