Corrected file and folder size function