fixed grep expression for rename command