Get basename of path by 'basename' command.