Fix `after` directory and `Plugfile` on Windows
Minor refactoring