use toMaybe :: Bool -> a -> Maybe a
fix setting the PATH env var causes infinite loop