Abstracting out the directory into the variable.

Thanks for the catch, @lezama!