Fix for #12, FileObject.copyFrom(..) doesn't create needed parent folders correctly

Suggested fix for #12, tests modified