Fix relative script to be cwd-independent.