Capital Gains Tax Partial Exclusion on house sale

My wife and I bought a house less than 2 years ago. 

 

When we bought the house she worked at a location 4 miles from our house. 

 

Then, she got a job 57 miles from our house through an agency. For this job the agency was her employer and not the hospital where she worked. 

 

Shortly after that she was hired by the hospital, so she still works 57 miles away, but got a new job and employer at that same location.

 

We know that if you get a new job more than 50 miles away from your old job that you get a partial exclusion. So, our question is does it matter that her employer changed while she worked at this location? It's more than 50 miles further than the job she had when we moved here, but she did switch employers at her new location, does that matter?

 

Thanks!