Minor Fixes the the Mail helper

This will break if I accidentally make a file object using the core file class rather than the alias.