Made the setup script compatible with arch linux and also fixed a bug with 0 length url_prefix

Test Plan: Try to install on arch linux

Reviewers: bogdan2412

Reviewed By: bogdan2412

CC: echipa-infoarena

Differential Revision: https://hackers.infoarena.ro/D20