Fixed @media and @import directive parsing