theme() fix

Theme directory function fix for localhost