Fix issues with package_flush_cache() that prevented uploading of themes (#3770)
Fix issues with package_flush_cache() that prevented uploading of themes (#3770)

This should address the issue where themes could not be loaded.
Found that flush package routine aborted trying to open up directories.
Fix #3739 

Signed-off-by: sbulen <a2c67fabfd6b7f04db25d584113a3e10aaa6714d@pacbell.net>

StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery