Remove filename from the final filename