Merge pull request #69 from kumarshantanu/master

remove reflection code; use Java 7 API directly for filetype detection