Source custom rc instead of reading it.
Escape file names before using them.
Use regex for alwayson/off and better handling of after dirs.