Throw exception if the yarn local dirs isn't set