Fix ignore of nested folders, fixes #814.

#814