Fixes #5307 set relative paths to the files dir for roles and the inventory dir for non-role tasks