Fixing init.ubuntu

Unfixed this init file throws the following error:

dirname: missing operand
Try `dirname --help' for more information.