Fixed file location problem with path.resolve()