really basic version of mkdir -p for -o option