Added better checks for store existence

needed for a more stable auto install