Functionalize the generation of lnklayer adjustment strings

The linklayer option strings for the queue setup scripts were simply returned
as environment variables. Now they are echoed by script functions so that
functions.sh really contains functions...