Make resilant against relative paths