fix code to select theme based on shell variables