Changed #!/bin/sh into #!/bin/bash