Fixed relative paths in newest_study_id