Basename function for GRASS GIS