Fix for  trailing slash issue on non-OSX *nix issues.