mrep: improved script by using relative paths

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>