Added a check for taskwarrior before using it.