add build script
improved build.sh to not depend on being run from the cwd
Merge pull request #28 from leonidas/master

add build script