Avoid crashes when getting game path