Improve `projectile-project-buffer-p`

Check for hidden/ignored buffers first, then for project root.

Fixes #337