rld: Split the file into a path module for path specific functions.
This allows resued for other parts of the system not dependent on objcet files or archives.