fix subdirectory create issue when copied from zip

Fixes an issue on the directory copy logic on FileUtils which caused the
subdirectories not to be created when the source is a jar file.