Update gitignore

- Ignore bin directory
Update build script

- add commands to create the bin directoy if needed