Update screenshot path handling to be multiplatform