DROOLS-530: fixing jar file creation on MemoryFileSystem
(cherry picked from commit acff8a982ca853f76d46547f0c7803eb9c7de0c1)