removed debug output
Only strip slashes from the end of the path.

This partially reverts the last commit.