Add install target
Some fixups for common.sh