Correct ugly -f for directory check in exports to -d.