Refactoring bash's folder