refactor bootstrap.cmd with a saveLink subroutine