Path integral solutions for non-Markovian processes