Allow from parameter in Loader::resolvePath to be optional