Added directory independency support

With these changes, the Minotar package can somewhere other than the root of the web server. This is useful for people are fork the package for use on a server that serves more than one purpose.