Use mkdir -p for ensuring directory exists