simplified current script dirname

Otherwise it errors on my zsh.