Move filetype detection to ftdetect/