correlation: Shell script functions moved to makefile

The calculation of autocorrelations is now fully maintained by makefiles
thus enhancing transparency and the possibility of parralelization.