Fix for generating diff. Calling processes in correct directory