Only log global file list if has one

Also fixed a type mkdirs -> makedirs

Change-Id: I67506c859fb5b4662723fb7588e208120a941070