Fix bug in nailgun task.