Fix for issue #45
Cleaned code, and added arg to check_output
using silent option when autocompleting virtual