Fixes for fish-shell script

1. The syntax for a condition was wrong and raised an error on fish-shell 2.1.1
2. The fish-shell script missed an improvement made to bash/zsh that created the error file directory if it didn't exist.