FileLoader now takes the operating system in the constructor