Allow a directory to be passed to Docker::Image#insert_local.
`File.file?` => `File.directory?`