Fix call to API to use absolute path

Bug introduced @14faf43c71428f729f518e3dcfbb541b66c72863, restored absolute path.