Update setup.php

Edited line 74 to correctly save the updated path from text input to cfg.php
Edited line 111 to handle file paths with special characters