Updated open and save methods based on relative path.