changed shebang to #!/bin/bash instead of #!/bin/sh doesnt work otherwise on deb squeeze