Correcting bash path in scripts