Handle non-4k pagesizes

Otherwise, ramdisk size computation is wrong.

Signed-off-by: Andy Grover <agrover@redhat.com>