bash extract name and ext