Merge pull request #2 from fuhlig1/master

Fix error with string manipulation in bash