fixed a bug to detect linux