Add support for task scripts that are not dirs

Makes life a bit easier