Use filename:rootname instead of homemade function.
Use filename:rootname instead of homemade function.

erlware-deprecated/sinan,ericbmerritt/sinan,ericbmerritt/sinan,erlware-deprecated/sinan,ericbmerritt/sinan,erlware-deprecated/sinan