BOOT-711: Make `loader` Windows compatible

GH issue: https://github.com/spring-projects/spring-boot/issues/711