implemented small change to make sure relative paths are replace correctly