check path with os