correctly detects jpg master.
Merge pull request #63 from birkin/master

correctly detects jpg master.