I have 128MB of RAM, and a swap partition of 1G...
The script still creates swap file. It should check for minimum size and only if it is needed it should create the swap file.