Only count directories towards workspace projects.

This fixes #2, if I've understood it correctly.