Fixed a bug with commit adding features when it shouldn't

Commit would always add unstaged features that matched a path filter if
one was provided.

Fixes #385