making 'basename' call compatible with old coreutils package which don't support '-s'