Revert "Only read the needed size if smaller than BUFSIZ"

This reverts commit acfe63c3938b1a3096616414e66288fd2ed40135.
Avoid vfork since it can break stdio.
Fix read size for fread.