rename screwed up - do not push
fix rename() function to allow for renaming directories