Fixed modules and classes not loading properly when the application is not in the root directory