Fix loading vars relative to playbook basedir.

A bug introduced by the inventory refactoring.

This PR fixes a logic bug to optimize loading extra vars for an extra playbook basedir.
It also invalidates the var caches to allow those new vars to be retrieved from Inventory.