Fixed "failed to open dir" errors with single version --versions

Change-Id: I897b7949d71330463cc905b782dad047838ec947