Fix code style and incorrect IS_UNIX condition