Fix autodetect of typerex package type
Merge pull request #1314 from dsheets/master

Fix autodetect of typerex package type