prevent NPE in case of empty rom directory