Check wheter variable is an integer (http://linuxpoison.blogspot.de/2012/05/bash-script-check-if-variable-is.html)