Refactor code using vinyl-file

This is waiting until https://github.com/sindresorhus/vinyl-file/pull/1 will be merged