Improved compatibility with custom paths for core Laravel directories.