Properly loads the tasks in the tasks directory

Fixes the erorr where the tasks directory could not be found