Made some tweak. Added listing file generation to build.sh, removed some unnecessary code to help simplify things