fixed reference error to nonexistent replDir