You know you can get the solution directory from the $project directory right?