Add splitArgs function to Base.hs.