Update the script to account for the changes in 0.1.7 where .gas is a directory
Merge pull request #662 from walle/add_autocomplete_for_gas

Update the script to account for the changes in 0.1.7 where .gas is a dir