fixed getAvailableFiles for checkCompleteness