added fileExists method to check if a module file exists before appending it to the head; added unit test for checking multiple defines that load modules from files.