Ensure the target/screenshots/ directory is created.