reorder some code in install_theme

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