Handle empty before/after
Allow specifying before/after in config file