A partial fix to quicksurf/quicksurf-bash-utilities#6

This is the final commit that fixes quicksurf/quicksurf-bash-utilities#6