hasm.sh uses a proper path now. also other improvements to the same file