Transition to SASS, Add platform detection