Fix sed arguments
Improve backup conditions in apply.sh
Add irbrc