Bug Fix

Fixed bug caused by using '#!/bin/sh' switched to '#!/bin/bash'