Fixed permission check on non-existant repos folder