Using the following snippet you will be able to rename WordPress folder.

Snippet Source/Credit: Snipplr