Fixed writing past the end of memory buffer.
The bug manifested itself in file names received with garbage symbol
at the end, causing workflow to fail due to files not found.
Added option flag to debug MPI subsystem
Merge branch 'andreyto-at_mpi_fixes'