NMS-6395 handle optional perl dependencies more gracefully