Check if the script is running on a Debian-based system before starting

Fixed some spacing too
Bugfix: port redirect wasn't correctly set when a custom port was in place