Removes directory separator since we are using this path as url
so even on windows it should be /
Changes how the variables are created since old php
varsion was throwing an exception when using extract
Changes the directory separator since we are using that for url