[lib] fixed 'path' bug in 'newFile'