Search for a file in an array of paths using Node.js