Smarter functions for find input/output files