Use relative paths in scriptapi.pro (already changed in other places)

cherry-pick the scriptapi.pro piece of  #490