Rewrite findFile function
Don't require child_process twice