Changed tab completion behaviour
Create tmp directory if necessary