Made proper usage of bash-variables in lines 45, 48 and 50