Remove unnecessary basename