Bug tracker
Mods cannot be uploaded when store/mods does not exist (fix completed in vcs)
mkdir($this->mods_dir, octdec($config['am_dir_perms']));
which fails the upload and generally renders the store/mods directory unusable.
To reproduce the issue, rm -rf store/* and try to upload a mod.
Patch fixing this problem is attached.
Additionally it is perhaps not a bad idea to sanity check file/directory modes before using them. A null/0 mode is never useful.