Converts a relative path in a 'require' statement into an absolute one.