making sure LP_DIR is set before we use it