Make :after more usefull

If :match and :after is defined, only the :match value is honored which leads to appends at the end of the file even if an appropriate location was defined via :after. This change adds an if to switch over to the :after method for insertion if no match was found but an :after is defined.