Fix ignore of nested folders, fixes #814.