Moved file finding functions to common.