Use filePath instead of path

Using path as a variable leads to weird behavior with node's `path` module