updated build script and added gitignore for build dir