add platform logic for pkg install
Merge pull request #4 from doublerr/master

add platform logic for pkg install