Minor bash changes to for portability