fixed directory creation behaviour for prompt.sh