split basefilename down into basedir and basefilename