added check to file autocomplete to make sure that files were found.