Use abspath instead of realpath to ease symlinking of the script.