Fix error from Projectile config file search

Projectile does not return nil if in a project root.  Instead it signals
an error if not in a project root.

To prevent further issues like this, test against the real Projectile
library instead of mocking around.