Updated compile_style to check extension earlier

Minor efficiency improvement: no need to determine target if source isn't a ".less" file