[FIX] "Bad substitution in line 9" in fig.sh on linux

fixes #3