Fix for symlinked binary dir.
Added support for Ninja.