Expand playbook_dir in time for loading tasks

Fixes #9618
Merge pull request #9629 from ansible/expand-variables

Expand playbook_dir in time for loading tasks