Fixed problem with spikes recording in the wrong directory