Fixed buttons not displaying correctly when using a different web root.

As requested, 

"Could you make the same pull request to the pistachitos branch?"