Check if a file is executable using Node.js