loader: better system() path handling