Fix goostats error when using options -J 100 -r

goostats was returning an error with the options -J 100 -r in lesson 5.
-J was being passed to head which returned invalid option. To fix this
I add option handeling with getopts.
Remove newline
Merge pull request #633 from jensv/fix-shell-05-script-goostats

Fix shell 05-script goostats option error