Fixed memory leak and webserver path name

1) Inside the options.c lib the *optarg function was allocated but not freed.
2) In webserver.c the pathname sometimes consisted of a dual '/', this is now checked for so the dual '/' is removed.