Updated to catch permission errors when changing directories.
Updated to handle unreadable directories.
Updated to handle nil sizes.