fix #1298 -- fix plugin/theme install under py2.6

This is #1298.

cc @svisser — does it fix it for you?

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>