This just seems wrong:
bq.
LAM_CONFIGURE_HOST="`hostname | head -n 1`"