Trying to puzzle out a sym-linking script