Remove base path if empty