Updated the 'buildRootname()' function in 'tools.fileutil' to retain and properly handle any paths provided for the input filename. This addresses Ticket #741 for the betadrizzle usage. 
Updated the 'buildRootname()' function in 'tools.fileutil' to retain and properly handle any paths provided for the input filename. This addresses Ticket #741 for the betadrizzle usage. 


git-svn-id: 6d9763a5a770351123389058c013888add577529@13341 fe389314-cf27-0410-b35b-8c050e845b92

spacetelescope/stsci.tools