fix inventory.basedir is not absolute path when hostfile is startswith "./"
Merge pull request #3814 from ftao/inventory_dir_abs

fix inventory.basedir is not absolute path when hostfile is startswith "./"