fix quota calculation for trash and versions

fix for #2032  
Take into account the quota can be 'none' or 'default',