dir() function now returns nil when the directory searched is not found.