port over detect os
Add bin
fix package.json