Fixed null pointer due to commented LB code
now get LB_HOME directory from env for lbcompile
added batfish functions suitable for general use