Remove trailing slash from registered theme directory.

Core expects this to be unslashed, so slashing it produces a double-slashed path in get_template_directory(), which can cause matching problems with strpos(), etc.