Use expand() rather than slicing to get a relative path

Signed-off-by: James McCoy <vega.james@gmail.com>