Fix bin script

- include default template
- fix bug
- add --bare option