How to calculate the specific humidity based on the saturated specific humidity?
The answer is easy. Replace $T$ with $T_d$, where $T_d$ is the dewpoint temperature.
I will say I am not all that familiar with those equations, but that is besides the point.