Symlinks and directory management improvements

   * Preserve symlinks  
   * Fixes directories management
      * Manage empty directories.
      * Preserve directories' attributes.
      * Preserve symlinks pointing to directories.
   * Fixes one unit tests