safer file type detection.
test for multiple deps.