pass the version to the backend script and make that script behave properly (use HEAD) if no version is provided