avoid dangling colon
@ -38,7 +38,7 @@ old_tty_settings=$(stty -g)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./hack/libs":"./hack"
PRELOAD_LIB="$PRELOAD_LIB:./hack/libdfhack.so"
PRELOAD_LIB="${PRELOAD_LIB:+$PRELOAD_LIB:}./hack/libdfhack.so"
case "$1" in
-g | --gdb)