makescripts run sh not bash, so dont depend on bash functionality.