Properly call rm in upgrade only script