Updated to work with node 0.10.x
Deleting self written cd solution. Wasn't working anyway.