Properly loads the tasks in the tasks directory

Fixes the error where the tasks directory could not be found