Update register-theme-directory.php

removed extra trailing slash that gets added due to