Use absolute paths in rebuild and restart scripts