The file init.d/swapfiles.in contains code to read from /proc/swapfiles. In the perfectly legitimate use case that the kernel does not have swapfile support (and/or proc may not be mounted, etc.) this causes ugly errors. Better to add: if [ -e /proc/swapfiles ]; then ... existing code ... fi
This is fixed in commit 07e8486. Thanks for the report.