Import os _before_ it's used