[SPARK-4792] Add error message when making local dir unsuccessfully

OK, but this variable seems pointless now.