Replaces variable dumper with better bash code

Bash is annoying.