Added shebang lines and moved build directory out of the source directory