Made compatible with awesome 3.4.x, removed hardcode