fixed tmx script to work with fish
Some minor changes