build: Rework BSD_STYLE_STATVFS check to match autoconf build