import bpy, os
print('cwd',os.getcwd())
print('filepath',bpy.data.filepath)
for p in ['<repo>/classical_head_bust.blend','<repo>/apps/console/classical_head_bust.blend','//classical_head_bust.blend']:
    try:
        bpy.ops.wm.save_as_mainfile(filepath=p)
        print('saved',p,'actual',bpy.data.filepath)
        break
    except Exception as e: print('fail',p,repr(e))
result={'filepath':bpy.data.filepath,'cwd':os.getcwd(),'objects':len(bpy.data.objects)}


cwd <repo>\apps\console
filepath
Info: Saved as "classical_head_bust.blend"
saved <repo>/classical_head_bust.blend actual <repo>\classical_head_bust.blend