Remove AllowOverride header for non-directories

When adding a dir with a different provider than directory (e.g. files,
or location), the AllowOverride header still added. This causes a
warning in apache.
Add unit tests
Merge pull request #420 from ByteInternet/remove-unnecessary-allow-override

Remove AllowOverride header for non-directories