Added logic to set the directory back to gruntDir.