fix $timeout unreliable in ensure_installed
Merge pull request #58 from nilxam/fix_ensure_installed

fix $timeout unreliable in ensure_installed