Fixed directory path issues

Fixed an issue where some uses of directory path required there to be an
ending / and some did not. All uses of directory path now require an
ending / on the directory path variable. This allows the script to be
used with xampp and on a host without errors.