fix file path passed to getFileInfo FS API