Added gitignore and updated build script

The build script was building the binaries in their respected directories. Making it hard to ignore the binaries via gitignore.