add bash shebang, fix echo command and redirect error output to devnull
Merge pull request #1 from poliva/master

add bash shebang, fix echo command and redirect error output to devnull